package cuit.blog.interceptor;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;



@Configuration
public class PictureConfig implements WebMvcConfigurer {
	@Value("${reggie.path}")
    private String basePath;
    
    @Override  
    public void addResourceHandlers(ResourceHandlerRegistry registry) {  
    
        registry.addResourceHandler("/springUpload/**").addResourceLocations("file:" + basePath);
    }
}